package com.prj.ufdm.webflux.config;

import javax.annotation.Resource;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import com.prj.ufdm.webflux.constants.WebFluxConstants;
import com.prj.ufdm.webflux.enums.ClientType;


@Configuration
public class InitParamConfig {
	
	@Resource
	private Environment env;
	
	@Bean
	public String initConfigParam() {
		try {
			WebFluxConstants.DEFAULT_CLIENT_TYPE = ClientType.valueOf(env.getProperty("webflux.default.device.handle"));
		}
		catch(Exception er) {
			
		}
		return "";
	}
}
